﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace ASPNET.StarterKit.BusinessLogicLayer
{
    /// <summary>
    /// Summary description for InvoiceDetails
    /// </summary>
    public class InvoiceDetails
    {
        //private int _InvoiceNumber;
        private string _InvoiceItem;
        private string _ItemDescription;
        private float _InvoiceItemRate;
        private string _Tax;
        private float _InvoiceTotalAmount;
        private DateTime _InvoiceDate;
        private int _InvoiceItemQty;
        private float _InvoiceDiscount;
        private float _GrandTotal; 
	    private int _ItemCode; 

        public InvoiceDetails(
           // int InvoiceNumber,
            string InvoiceItem,
            string ItemDescription,
            float InvoiceItemRate,
            string Tax,
            float InvoiceTotalAmount,
            DateTime InvoiceDate,
            int InvoiceItemQty,
            float InvoiceDiscount,
            float GrandTotal, 
	        int ItemCode 
            )
        {
            //_InvoiceNumber = InvoiceNumber;
            _InvoiceItem = InvoiceItem;
            _ItemDescription = ItemDescription;
            _InvoiceItemRate = InvoiceItemRate;
            _Tax = Tax;
            _InvoiceTotalAmount = InvoiceTotalAmount;
            _InvoiceDate = InvoiceDate;
            _InvoiceItemQty = InvoiceItemQty;
            _InvoiceDiscount = InvoiceDiscount;
            _GrandTotal= GrandTotal;
            _ItemCode = ItemCode; 
        }


        //public int InvoiceNumber
        //{
        //    get
        //    {
        //        return _InvoiceNumber;

        //    }
        //    set
        //    {
        //        _InvoiceNumber = value;
        //    }

        //}
        public string InvoiceItem
        {
            get
            {
                if (String.IsNullOrEmpty(_InvoiceItem))
                {
                    return string.Empty;
                }
                return _InvoiceItem;

            }
            set
            {
                _InvoiceItem = value;
            }
        }

        public string ItemDescription
        {
            get
            {
                if (String.IsNullOrEmpty(_ItemDescription))
                {
                    return string.Empty;
                }
                return _ItemDescription;

            }
            set
            {
                _ItemDescription = value;
            }
        }

        public float InvoiceItemRate
            {
                get { return _InvoiceItemRate; }
                set { _InvoiceItemRate = value; }
    }

        public string Tax
                    {
                        get { return _Tax; }
                        set { _Tax = value; }
    }


        public float InvoiceTotalAmount
                    {
                get { return _InvoiceTotalAmount; }
                set { _InvoiceTotalAmount = value; }
    }



        public DateTime InvoiceDate
                    {
                        get { return _InvoiceDate; }
                        set { _InvoiceDate = value; }
    }


        public int InvoiceItemQty
         
                    {
                        get { return _InvoiceItemQty; }
                        set { _InvoiceItemQty = value; }
    }


        public float InvoiceDiscount
          {
              get { return _InvoiceDiscount; }
              set { _InvoiceDiscount = value; }
    }

        public float GrandTotal
        {
            get { return _GrandTotal; }
            set { _GrandTotal = value; }
        }

        public int ItemCode
        {
            get { return _ItemCode; }
            set { _ItemCode = value; }
        }
    }
}
            